package com.example.higo.view.adapter.homepage;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

import com.example.higo.view.adapter.BaseVpAdapter;

import java.util.List;


/**
 * Created by wj on 2016/11/11.
 */

public class HomePageMainVpAdapter extends BaseVpAdapter {

    private List<String> titles;

    public HomePageMainVpAdapter(FragmentManager fm, List<Fragment> data,List<String> titles) {
        super(fm, data);
        this.titles = titles;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return titles!=null?titles.get(position):null;
    }
}
